-- background: 27732 from stack: in -- bmap block id: 29799 -- flags: 0000 -- background id: 0 -- name: checkBack ----- HyperTalk script ----- on fixResponses -- called from openCard on tests 1-4 repeat with r = 1 to the number of cd flds if word 1 of the short name of cd fld r = "answer" then put word 2 of the short name of cd fld r into rLine get line rLine of cd fld "Your Responses" if it <> "" then put line rLine of cd fld "Your Responses" into cd fld r else put "" into cd fld r end if end if end repeat end fixResponses on toggleResponses -- called by mouseup in Answer fields in tests 1-3 put word 2 of the short name of target into rLine repeat with r = 1 to the number of cd flds if word 1 of the short name of cd fld r = "Responses" then hide cd fld r end repeat set the visible of cd fld ("Responses" && rLine) to true end toggleResponses on chooseResponses -- called by mouseup in Responses fields in tests 1-3 global inProgress put true into inProgress put clickline() into temp put (word 2 of the short name of target) into rLine put line temp of cd fld ("Responses" && rLine) into cd fld ("Answer" && rLine) put cd fld ("Answer" && rLine) into line rLine of cd fld "Your Responses" hide cd fld ("Responses" && rLine) put temp into line rLine of cd fld "Your Answers" end chooseResponses on ScoreReview global memolist, testnumber, correct, incorrect put "0" into correct put "0" into incorrect answer "Do you want to review your scores?" with "No" or "Yes" if it is "No" then go card "test 0" else put 1 into s repeat with s = 1 to the number of items in memolist if item s of memolist = "true" then add 1 to correct else add 1 to incorrect add 1 to s end repeat go card "test 7" put correct into line testNumber of cd fld "correct" put incorrect into line testNumber of cd fld "incorrect" end if end ScoreReview -- part 6 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=126 top=80 right=308 bottom=510 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 156 -- text size: 14 -- style flags: 0 -- line height: 16 -- part name: cardtext -- part 4 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=128 top=0 right=21 bottom=508 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 21 -- text size: 18 -- style flags: 10240 -- line height: 19 -- part name: Title -- part 5 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=128 top=23 right=45 bottom=508 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 21 -- text size: 18 -- style flags: 0 -- line height: 20 -- part name: cardTitle -- part 10 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=127 top=64 right=82 bottom=512 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 158 -- text size: 14 -- style flags: 0 -- line height: 16 -- part name: subHeader -- part 9 (field) -- low flags: 81 -- high flags: 0000 -- rect: left=0 top=330 right=342 bottom=115 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 9 -- part name: cardName -- part 16 (field) -- low flags: 81 -- high flags: 0000 -- rect: left=0 top=330 right=342 bottom=96 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 9 -- part name: cardName -- part 17 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=428 top=317 right=342 bottom=456 -- title width / last selected line: 0 -- icon id / first selected line: 18611 / 18611 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: prev ----- HyperTalk script ----- on mouseUp visual scroll right go prev end mouseUp -- part 18 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=457 top=317 right=342 bottom=484 -- title width / last selected line: 0 -- icon id / first selected line: 18612 / 18612 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: next ----- HyperTalk script ----- on mouseUp if word 2 of the short name of this card = "0" then visual dissolve go next else visual scroll left go next end if end mouseUp -- part 21 (button) -- low flags: 00 -- high flags: A000 -- rect: left=449 top=3 right=18 bottom=510 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 2048 -- line height: 13 -- part name: Contents ----- HyperTalk script ----- on mouseUp visual effect dissolve go card "content 0" end mouseUp -- part 22 (button) -- low flags: 00 -- high flags: 2000 -- rect: left=484 top=317 right=342 bottom=512 -- title width / last selected line: 0 -- icon id / first selected line: 18613 / 18613 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: return ----- HyperTalk script ----- on mouseUp go card "test 0" end mouseUp